package com.example.mymvvmdemo.models.add_device.entity;

import java.util.ArrayList;
import java.util.List;

public class DeviceTypeListEntity {

    public int code;
    public String message;
    public DataDTO data;

    @Override
    public String toString() {
        return "DeviceListEntity{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        public String message;
        public ArrayList<DeviceTypesDTO> device_types;

        @Override
        public String toString() {
            return "DataDTO{" +
                    "message='" + message + '\'' +
                    ", device_types=" + device_types +
                    '}';
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public ArrayList<DeviceTypesDTO> getDevice_types() {
            return device_types;
        }

        public void setDevice_types(ArrayList<DeviceTypesDTO> device_types) {
            this.device_types = device_types;
        }

        public static class DeviceTypesDTO {
            public String code;
            public String name;
            public boolean isSelect;
            public List<String> functions;

            @Override
            public String toString() {
                return "DeviceTypesDTO{" +
                        "code='" + code + '\'' +
                        ", name='" + name + '\'' +
                        ", isSelect=" + isSelect +
                        ", functions=" + functions +
                        '}';
            }

            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<String> getFunctions() {
                return functions;
            }

            public void setFunctions(List<String> functions) {
                this.functions = functions;
            }
        }
    }
}
